<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/mycss/test.css" type="text/css" rel="stylesheet"  media="screen" />
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/mycss/my.css" type="text/css" media="screen" />
<link rel="stylesheet" href="resources/css/jquery.ui.all.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
<!-- jQuery Datepicker Plugin -->
<script type="text/javascript" src="resources/scripts/jquery-ui.js"></script>

<script type="text/javascript" src="resources/scripts/jquery.ui.datepicker-zh-CN.js"></script>



<script>
$(document).ready(function(){
	initInput();
	initJyzt();
});
function initInput(){
	$("input").attr("readonly", "true");
}
function initJyzt(){
	var jyzt="${ddxxBean.jyzt}";
	if(jyzt==1){//未付款
		$("#jyztHidden").val("4");//作废订单
		$("#ddxxSubmit").val("订单作废");
		$("#jyztSpan").append("未付款");
	}
	if(jyzt==2){//已付款
		$("#jyztHidden").val("3");//作废订单
		$("#ddxxSubmit").val("发货");
		$("#jyztSpan").append("已付款");
	}
	if(jyzt==3){//交易成功
		$("#jyztHidden").val("4");//作废订单
		$("#ddxxSubmit").val("订单作废");
		$("#jyztSpan").append("交易成功");
	}
	if(jyzt==4){
		$("#jyztSpan").append("交易作废");
		$("#ddxxSubmit").hide();
	}
	
}
function submitForm(){
	$("#searchBoxSubmitid").submit();
}


</script>


<#assign s=JspTaglibs["/WEB-INF/tld/struts-tags.tld"] />

<title>无标题文档</title>
</head>

<body>

  <div id="main-content">
    <!-- Main Content Section with everything -->
    <noscript>
    <!-- Show a notification if the user has disabled javascript -->
    </noscript>
    <!-- End .clear -->
          <!-- Start Content Box -->
      <div class="content-box column-left">
      <div class="content-box-header">
        <h3>收货信息</h3>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">

        <form id="searchBoxSubmitid" action="updateDdxxgl.action" method="post" class="myForm">
        <input id="jyztHidden" type="hidden"  value="" name="ddxxBean.jyzt"/>
        <input type="hidden"  value="${ddxxBean.ddxxid}" name="ddxxBean.ddxxid"/>
        <input type="hidden"  value="${ddxxid}" name="ddxxid"/>
         <p>
        <b>收&nbsp;&nbsp;货&nbsp;&nbsp;人：</b>
        <input id="shrxm_id" class="text-input mysmall-input" type="text" style="width:100px;" value="${ddxxBean.shrxm}"/>
		</p>
		         <p>
        <b>收货地址：</b>
        <input class="text-input mysmall-input" type="text" style="width:250px;" value="${ddxxBean.shdz}"/>
		</p>
		         <p>
        <b>联系电话：</b>
        <input class="text-input mysmall-input" type="text" style="width:150px;" value="${ddxxBean.sjhm}"/>
		</p>
		<p>
        <b>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编：</b>
        <input class="text-input mysmall-input" type="text" style="width:150px;" value="${ddxxBean.yb}"/>
		</p>
		<p>
		<input type="button" class="button"  value="打印快递单"/>
		<input type="button" class="button"  value="打印发货清单"/>
		<input id="ddxxSubmit" type="button" class="button" onclick="submitForm()" value="发货"/>
		</p>

          </form>
        </div>
        <!-- End #tab3 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <div style="clear:both;"></div>
    <div class="content-box">
      <div class="content-box-header">
        <h3>${ddxxBean.ddxxid}---<span id="jyztSpan"></span></h3>

        <ul class="content-box-tabs">
          <li></li>
          <!-- href must be unique and match the id of target div -->
          <li></li>
        </ul>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
             
          <table>
            <thead>
              <tr>
                <th>商品货号</th>
                <th>品牌</th>
                <th>型号</th>
                <th>数量</th>
                <th>价格</th>
                <th>销售价格</th>
                <th>小计</th>
                <th>操作</th>
              </tr>
            </thead>
 			<tfoot>
           
            </tfoot>

               <@s.iterator id="ddspxx" value="lstDdspxx">	
              <tr>
                <td><@s.property value="#ddspxx.sphh"/></td>
                <td><@s.property value="#ddspxx.spppm"/></td>
                <td><@s.property value="#ddspxx.spxhnr"/></td>
                <td><@s.property value="#ddspxx.spsl"/></td>
                <td><@s.property value="#ddspxx.spyj"/></td>
                <td><@s.property value="#ddspxx.spsj"/></td>
                <td>￥<@s.property value="#ddspxx.spsj*#ddspxx.spsl"/></td>
                <td>
                  <!-- Icons -->
                  <a href="#" title="Edit"><img src="images/icons/pencil.png" alt="Edit" /></a> <a href="#" title="Delete" onclick=""><img src="images/icons/cross.png" alt="Delete"  /></a> <a href="#"  title="Edit Meta"><img src="images/icons/hammer_screwdriver.png" alt="Edit Meta" /></a> </td>
              </tr>
           </@s.iterator>
                 <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td>总计：</td>
                <td>￥${ddxxBean.jyze}</td>
                <td>
                  <!-- Icons -->
                  <a href="#" title="Edit"><img src="images/icons/pencil.png" alt="Edit" /></a> <a href="#" title="Delete" onclick=""><img src="images/icons/cross.png" alt="Delete"  /></a> <a href="#"  title="Edit Meta"><img src="images/icons/hammer_screwdriver.png" alt="Edit Meta" /></a> </td>
              </tr>
            </tbody>
          </table>
        </div>
        <!-- End #tab1 -->
        <div class="tab-content" id="tab2"></div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <!-- End .content-box --><!-- Start Notifications --><!-- End Notifications -->
<div id="footer"> <small>
      &#169; Copyright 2011 Your Company | Powered by <a href="#">kimxc11@gmail.com</a> | <a href="#">Top</a> </small> </div>
  <!-- End #footer -->
  
  
    <div id="messages" style="display: none">
          <form id="saveXxFrom" action="saveXx.action" method="post">
          <input type="hidden" name="xxBean.fxxid" value="0"/>
          <fieldset style="margin-top:20px;" >
          <label class="search_lable">菜单名</label>
         <input class="search_myself" name="xxBean.xxm" type="text"/>
          </fieldset>
          <fieldset style="margin-top:20px;">
          <label class="search_lable" >排&nbsp;&nbsp;&nbsp;序</label>
          <input class="search_myself" name="xxBean.px" type="text"/>
          </fieldset>
           <fieldset style="margin-top:20px;">
          <input class="button" type="submit" value="保存" />
          </fieldset>
        </form>
      </div> 
</div>

</body>
</html>
